// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_FIN_ADVANCE_AMOUNT
// * CreateDate    : 2014-06-05 18:29:46
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:46
// * LastChanger   : 2014-06-05 18:29:46
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class FinAdvanceAmountTable : TableInfo
    {
		public const string C_TableName = "FIN_ADVANCE_AMOUNT";
		
		public const string C_ADVANCE_ID = "ADVANCE_ID";
		public const string C_PERSON_ID = "PERSON_ID";
		public const string C_ADVANCE_DATE = "ADVANCE_DATE";
		public const string C_ADVANCE_TYPE = "ADVANCE_TYPE";
		public const string C_AMOUNT = "AMOUNT";
		public const string C_STATUS = "STATUS";
		public const string C_REMARK = "REMARK";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		public const string C_APPROVED_BY = "APPROVED_BY";
		public const string C_APPROVED_DATE = "APPROVED_DATE";
		public const string C_RELATED_ID = "RELATED_ID";
		public const string C_PAYMENT_TYPE = "PAYMENT_TYPE";
		
		public FinAdvanceAmountTable()
        {
            _tableName = "FIN_ADVANCE_AMOUNT";
        }
		
		protected static FinAdvanceAmountTable _current;
        public static FinAdvanceAmountTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new FinAdvanceAmountTable();

            _current.Add(C_ADVANCE_ID, new ColumnInfo(C_ADVANCE_ID,"AdvanceId", true, typeof(string)));
            _current.Add(C_PERSON_ID, new ColumnInfo(C_PERSON_ID,"PersonId", false, typeof(string)));
            _current.Add(C_ADVANCE_DATE, new ColumnInfo(C_ADVANCE_DATE,"AdvanceDate", false, typeof(DateTime)));
            _current.Add(C_ADVANCE_TYPE, new ColumnInfo(C_ADVANCE_TYPE,"AdvanceType", false, typeof(string)));
            _current.Add(C_AMOUNT, new ColumnInfo(C_AMOUNT,"Amount", false, typeof(decimal)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY,"ApprovedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE,"ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_RELATED_ID, new ColumnInfo(C_RELATED_ID,"RelatedId", false, typeof(string)));
            _current.Add(C_PAYMENT_TYPE, new ColumnInfo(C_PAYMENT_TYPE,"PaymentType", false, typeof(string)));
			
		}
		
		public ColumnInfo ADVANCE_ID
        {
            get { return this[C_ADVANCE_ID]; }
        }
		
		public ColumnInfo PERSON_ID
        {
            get { return this[C_PERSON_ID]; }
        }
		
		public ColumnInfo ADVANCE_DATE
        {
            get { return this[C_ADVANCE_DATE]; }
        }
		
		public ColumnInfo ADVANCE_TYPE
        {
            get { return this[C_ADVANCE_TYPE]; }
        }
		
		public ColumnInfo AMOUNT
        {
            get { return this[C_AMOUNT]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }
		
		public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }
		
		public ColumnInfo RELATED_ID
        {
            get { return this[C_RELATED_ID]; }
        }
		
		public ColumnInfo PAYMENT_TYPE
        {
            get { return this[C_PAYMENT_TYPE]; }
        }
		
		
		
	}
}

